home *** CD-ROM | disk | FTP | other *** search
- LS -- A Directory Utility
-
- Author: Gavin Adams
-
- March 31, 1987
-
- Version 1.00
-
- Description: LS is an enhanced directory utility that is superior to the
- MS-DOS "DIR" command. LS sorts the files alphabetically,
- lays the files in columns so that more files can be seen on
- the screen at the same time, and other features.
-
- LS was written after another program of the same name for
- MS-DOS (IBM compatible really) that wouldn't require the
- ANSI.SYS driver to be loaded. Also added is a easier to read
- "long" listing of files, and a nifty column for attributes
- including the SHAREABLE attribute for Novell Netware files.
-
- The program was written in Microsoft C 4.00, on an Everex
- System 180 (AT compatible), with testing done on a Novell
- Advanced Netware SFT Level I, and PC-DOS 3.10. If anyone
- has any problems running LS under a different version of DOS,
- or a different network O/S, I would appreciate the feedback
- (See Contacting Author at bottom of docs).
-
- Requirements: IBM/PC,XT,AT or Compatible Computer
- 1 DSDD Disk Drive (Hard Disk Recommended)
- Monochrome, CGA, or EGA Video Display
- 128K RAM
- MS-DOS or PC-DOS version 2.10 or higher
-
-
- Installation/
- Operation: To install LS, simply copy the file LS.EXE to the drive/
- directory that you normally put you program files in. LS
- runs quite fast off of a hard disk, running it off of a
- floppy drive could be a little slower. Floppy owners with
- a RAM drive may put LS there without any problems.
-
- The format for LS is:
-
- ls [-options] filename
-
- Options and the filename may be placed anywhere on the com-
- mand line and in any order. An option must have a leading
- - (dash) character. The filename spec is the same as for
- the normal MS-DOS directory command. Even though more then
- one filespec can be listed, only the LAST given filespec will
- be used. Here are some examples:
-
- All files with .c extent, extended listing,
- send to printer:
-
- C>ls -l *.c -p
-
- C>ls -lp *.c
-
- C>ls *.c -pl
-
- Options: Without options, LS will display the files requested in a
- 1 to 5 column format, sorted alphabetically, and broken by
- pages. The following options tell LS to either display the
- files in a different order, or to sort files in a different
- matter.
-
- -? If this is option is used, LS will give a short list-
- ing of the options available to LS and the current
- version number. No files will be displayed with op-
- tion.
-
- -a All files display. Normally, LS will only show files
- that the MS-DOS DIR command shows. With this option,
- hidden and system files will also be shown, along with
- the current and parent directories ("." and "..").
-
- -c Single column listing. For those that prefer the di-
- rectory to be displayed in one column. Good if your
- on an 40-column monitor also.
-
- -l Long listing of files. LS only show the name of the
- file by default. This option gives full information
- on the file in the following format:
-
- filename byte size date time attributes
-
- Filename - Name of file specified
- Byte size - Number of bytes long
- Date - Last modified date
- Time - Last modified time
- Attributes - rw - read/write
- ro - read/only (no modify)
- a - archive
- y - system file (i.e. IBMBIOS.COM)
- d - subdirectory
- v - volume label of disk
- h - hidden file
- s - shareable (Novell only)
- u - unused (may be used by other O/S)
-
- -p Re-direct output to printer. NOTE: the MS-DOS redirec-
- tion command (>) can also be used to re-direct output
- to either the printer or a file.
-
- -r Reverse sort of files. This will reverse the sort
- (alpha or by date/time) in the opposite order (i.e.
- A-Z would be Z-A or Old/New would be New/Old).
-
- -t Date/Time sort of files. Instead of sorting by alpha,
- the files will be sorted by the time date stamp.
-
- -u Disk usage report of drive. This will show the total
- bytes of the files listed, and the total remaining
- room on the drive where the files exist.
-
- Shareware: This program is copyrighted, and is not public domain.
- If you use this program, please send $5.00 to the address
- below. If not, either erase it or give it to someone else
- to see if they like it.
-
- You may freely distribute this program as long as you do
- not modify either the code or this doc file. Also, both the
- program file and documentation must be kept together.
-
- Anyone who does register (and sends in $5.00) will get up-
- dates for 1 (one) year from the date I receive the registra-
- tion. You will also receive any other utilities that I re-
- lease under the classification of "Utilities".
-
- Contacting
- Author: To either send in your registration, comments, questions, pos-
- sible bugs and such, please contact in the following ways.
-
- Compuserve: PPN [72167,760] Gavin Adams
-
- West Coast / BBS's: C.A.A. (702)-731-3178
- Leave E-Mail for Gavin Adams
-
- or write: Gavin Adams
- 304 Orland #39
- Las Vegas, NV 89107
- (702) 877-1392
-
- I would deeply appreciate any comments on what you like and
- don't like about the program, bugs you encounter, or just a
- card showing that you has seen my software.
-
- Until the next program...